<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <a href="15.history对象1.html">15.history对象1.html</a>
    <button>跳转</button>
    <script>
        /* 
            History 接口允许操作浏览器的曾经在标签页或者框架里访问的会话历史记录。
        */
        const btnObj = document.querySelector("button");
        btnObj.addEventListener("click", function () {
            //回退
            // window.history.back();
            history.go(-1);
        });
    </script>
</body>

</html>